package jhlee42;

import java.util.Scanner;

public class J09Cicle {
	public static void main(String[] args) {
		double across[] = new double[1];
		double circle = 0; // 원 둘레
		double area = 0; // 원 면적
		double pi = 3.141592;
		//Scanner sc;
		
		Scanner sc = null;
		input(across, sc);
		getcal(circle, area, across, pi);
		output(circle, area, sc);	
	}
	
	public static void input(double[] across,Scanner sc){
		//Scanner sc;
		sc = new Scanner(System.in);
		System.out.println("지름을 입력하세요..");
		across[1] = sc.nextDouble();
	}
	public static void getcal(double circle, double area,double[] across,double pi){
		circle = (across[1] * 2) * pi;
		area = (across[1] * across[1]) * pi;
	}
	public static void output(double circle, double area, Scanner sc){
		System.out.println("원 둘레 :  " + circle);
		System.out.println("원 넓이 :  " + area);
		sc.close();
	}

}
